remote-refs: Add NULL terminator to options array
authorColin Walters <walters@verbum.org>
Fri, 28 Oct 2016 13:32:02 +0000 (09:32 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 28 Oct 2016 17:47:50 +0000 (17:47 +0000)
Caught by `-fsanitize=undefined`.

Closes: #552
Approved by: jlebon

src/ostree/ot-remote-builtin-refs.c

index da3bcbb9a7f7e9914e1eae609c9be40b15c53a54..4317c45fb6cee907760cc96dfae21e80540c68be 100644 (file)
@@ -29,6 +29,7 @@ static char* opt_cache_dir;
 
 static GOptionEntry option_entries[] = {
   { "cache-dir", 0, 0, G_OPTION_ARG_STRING, &opt_cache_dir, "Use custom cache dir", NULL },
+  { NULL }
 };
 
 gboolean